<?
include"cek.php";
include"sambung.php";
if($act=="detail"){
$akses="id";
$val=$id;
}else{
$akses="nik";
$val=$nik;
}
$data=mysql_query("select * from data_karyawan where $akses='$val'");
$d1=mysql_fetch_array($data);
if($d1[status]=="0"){
$d1[status]="Aktif";
}else{
$d1[status]="<font color=\"#FF0000\">Cuti</font>";
}
?>

<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Website Cuti Online</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<style>
<!--
body         { font-family: arial; color: #000080 }
-->
</style>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 background="images/bg.gif" onload="FP_preloadImgs(/*url*/'images/button7.gif', /*url*/'images/button9.gif', /*url*/'images/buttonB.gif', /*url*/'images/arsip2.gif')">
<center><br>
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
                <TD>
                        <IMG SRC="images/tkm_01.gif" WIDTH=800 HEIGHT=158 ALT=""></TD>
        </TR>
        <TR>
                <TD>
                        <table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/tkm_02.gif" id="table1">
                                <tr>
                                        <td width="12">&nbsp;</td>
                                        <td valign="top">
                                        <table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0">
                                                <tr>
                                                        <td>
                                                        <p align="right">&nbsp; <a href="arsip_cuti.php?id=<?echo$d1[nik]?>">
                                                        <img border="0" id="img6" src="images/arsip2.gif" height="20" width="150" alt="Arsip Cuti" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'images/arsip2.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'images/arsip2.gif')" fp-style="fp-btn: Metal Rectangle 1; fp-font-color-hover: #FF0000; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title="Arsip Cuti"></a>
                                                        <?
                                                        if($id ==""){
                                                        ?><a href="pengajuan.php">
                                                        <img border="0" id="img3" src="images/button6.gif" height="20" width="150" alt="Pengajuan Cuti" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'images/button7.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'images/button6.gif')" fp-style="fp-btn: Metal Rectangle 1; fp-font-color-hover: #FF0000; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title="Pengajuan Cuti"></a>
                                                        <a href="persetujuan.php">
                                                        <img border="0" id="img4" src="images/button8.gif" height="20" width="150" alt="Persetujuan Cuti" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'images/button9.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'images/button8.gif')" fp-style="fp-btn: Metal Rectangle 1; fp-font-color-hover: #FF0000; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title="Persetujuan Cuti"></a>
                                                        <?}else{?><a href="karyawan.php">
                                                        <img border="0" id="img3" src="images/kembali1.gif" height="20" width="150" alt="Kembali" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'images/kembali.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'images/kembali1.gif')" fp-style="fp-btn: Metal Rectangle 1; fp-font-color-hover: #FF0000; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title="Kembali"></a>
                                                        <?}?>
                                                        <a href="keluar.php">
                                                        <img border="0" id="img5" src="images/buttonA.gif" height="20" width="150" alt="Keluar" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'images/buttonB.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'images/buttonA.gif')" fp-style="fp-btn: Metal Rectangle 1; fp-font-color-hover: #FF0000; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title="Keluar"></a></td>
                                                </tr>
                                                </table>
                                        <?echo"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" id=\"table3\">
                                                <form method=\"POST\" action=\"ubah_password.php\">
                                                        <tr>
                                                                <td colspan=\"2\" bgcolor=\"#6799CF\">
                                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                                Data Karyawan</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\">&nbsp;</td>
                                                                <td bgcolor=\"#F5DDB8\" width=\"73%\">&nbsp;&nbsp; Data
                                                                Personal</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Nama</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[nama]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                NIK</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[nik]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Tingkat</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[tingkat]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Jabatan</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[jabatan]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Tempat Kerja</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[posisi]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                NIK Atasan</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[nik_atasan]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                NIK Support</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[nik_support]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Status</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[status]</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-top: 2px; margin-bottom: 2px\">&nbsp;</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-top: 2px; margin-bottom: 2px\">&nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">&nbsp;</td>
                                                                <td bgcolor=\"#F5DDB8\" width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Jumlah Cuti yang belum diambil</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Cuti Besar</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[besar]
                                                                Hari</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Tahun 2004</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[th2004]
                                                                Hari</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Tahun 2005</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[th2005]
                                                                Hari</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                Tahun 2006</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">
                                                                $d1[th2006]
                                                                Hari</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">&nbsp;</td>
                                                                <td width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 2px; margin-bottom: 2px\">&nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                                <td width=\"27%\" bgcolor=\"#F5DDB8\" align=\"right\">
                                                                <p style=\"margin-right: 10px; margin-top: 2px; margin-bottom: 2px\">&nbsp;</td>
                                                                <td bgcolor=\"#F5DDB8\" width=\"73%\">
                                                                <p style=\"margin-left: 10px; margin-top: 5px; margin-bottom: 5px\">
                                                                &nbsp;</td>
                                                        </tr>
                                                </form>
                                        </table>";
                                        ?>
                                        </td>
                                        <td width="15">&nbsp;</td>
                                </tr>
                        </table>
                </TD>
        </TR>
        <TR>
                <TD>
                        <IMG SRC="images/tkm_05.gif" WIDTH=800 HEIGHT=45 ALT=""></TD>
        </TR>
</TABLE>
</BODY>
</HTML>